package day017.recur;

import java.io.File;

public class Demo2 {
    public static void main(String[] args) {
        File file = new File("day17_demo\\bbb");
        deleteFiles(file);
    }

    public static void deleteFiles(File f) {
        File[] files = f.listFiles();

        for (File file : files) {
            if (file.isDirectory()) {
                deleteFiles(file);
            } else {
                file.delete();
            }
        }
        f.delete();
    }
}
